﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace Management.Core.Permission
{
    public class Permission
    {
        [Key]
        public int PermissionID { get; set; }

        [Display(Name = "动作排序")]
        public int ActionNo { get; set; }

        [Display(Name = "控制器排序")]
        public int ControllerNo { get; set; }

        [Display(Name = "动作名称")]
        public string ActionName { get; set; }

        [Display(Name = "控制器名称")]
        public string ControllerName { get; set; }

        [Display(Name = "动作")]
        public string Action { get; set; }

        [Display(Name = "控制器")]
        public string Controller { get; set; }

        [Display(Name = "创建时间")]
        public DateTime Cteated_at { get; set; }

        [Display(Name = "更新时间")]
        public DateTime Updated_at { get; set; }

        public virtual ICollection<RolePermission.RolePermission> RolePermission { get; set; }
    }
}
